package com.asia5b.a5mall.shop.adapter

import com.asia5b.a5mall.middleware.model.shop.ShopCategoryModel
import com.asia5b.a5mall.shop.R
import com.asia5b.a5mall.shop.databinding.ItemShopcategoryAdapterBinding
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.chad.library.adapter.base.viewholder.BaseViewHolder

/**
 * Created by zhangyuncai on 2020/4/23.
 */
class ShopCategoryAdapter(list: ArrayList<ShopCategoryModel>) :
        BaseQuickAdapter<ShopCategoryModel, BaseDataBindingHolder<ItemShopcategoryAdapterBinding>>(R.layout.item_shopcategory_adapter, list) {
    override fun convert(helper: BaseDataBindingHolder<ItemShopcategoryAdapterBinding>, item: ShopCategoryModel) {
        val binding = helper.dataBinding!!
        binding.data = item
    }
}